registerReceiver
Register a broadcast receiver.
Return
The first sticky intent found that matches filter, or null if there are none.
Parameters
Context to retrieve service from.
The BroadcastReceiver to handle the broadcast.
Selects the Intent broadcasts to be received.
If this receiver is listening for broadcasts sent from other apps—even other apps that you own—use the RECEIVER_EXPORTED flag. If instead this receiver is listening only for broadcasts sent by your app, or from the system UID, use the RECEIVER_NOT_EXPORTED flag.
See also
://developer.android.com/develop/background-work/background-tasks/broadcasts#context-registered-receivers
Register a broadcast receiver.
Return
The first sticky intent found that matches filter, or null if there are none.
Parameters
Context to retrieve service from.
The BroadcastReceiver to handle the broadcast.
Selects the Intent broadcasts to be received.
String naming a permission that a broadcaster must hold in order to send and Intent to you. If null, no permission is required.
Handler identifying the thread will receive the Intent. If null, the main thread of the process will be used.
If this receiver is listening for broadcasts sent from other apps—even other apps that you own—use the RECEIVER_EXPORTED flag. If instead this receiver is listening only for broadcasts sent by your app, or from the system UID, use the RECEIVER_NOT_EXPORTED flag.
See also
://developer.android.com/develop/background-work/background-tasks/broadcasts#context-registered-receivers